﻿<UserControl x:Class="Radovici.Ctrls.ModalViewBackground"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    MinWidth="300" MinHeight="300">
    <UserControl.Resources>
        <SolidColorBrush x:Key="AeroishBackgroundBrush" Color="Silver" Opacity="0.5"/>
        <SolidColorBrush x:Key="AeroishBorderBrush" Color="Black" Opacity="0.5"/>
    </UserControl.Resources>
    <Border CornerRadius="10" Background="{StaticResource AeroishBackgroundBrush}" BorderBrush="{StaticResource AeroishBorderBrush}" BorderThickness="2">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="25"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="25"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="25"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="25"/>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="Title" Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="18"/>
            <Button x:Name="CloseButton" Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Height="18">
                <Image Source="Resources/delete2.png"/>
            </Button>
            <Border Grid.Row="1" Grid.Column="1" CornerRadius="10" Background="White" BorderBrush="{StaticResource AeroishBorderBrush}" BorderThickness="2">
                <ContentPresenter Content="{TemplateBinding Content}"/>
            </Border>
            <StackPanel Grid.Row="2" Grid.ColumnSpan="3" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Button x:Name="CancelButton" Height="18" Width="50" Content="Cancel" Margin="0,0,4,0"/>
                <Button x:Name="OkButton" Height="18" Width="50" Content="Ok"/>
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
